package com.xiaoye.qbdatahandle.task;

import com.xiaoye.qbdatahandle.service.CollectionResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledTaskService {
    @Autowired
    private CollectionResultService collectionResultService;


    /**
     * 内容清洗
     */
    @Scheduled(cron = "0 */10 * * * ?")
    public void handleResult() {
        System.out.println("情报内容清洗任务开始");
        collectionResultService.handleResult();
        System.out.println("情报内容清洗任务结束");
    }

}